package com.youdianda.mapper;

import com.youdianda.dto.User;
import com.youdianda.entity.YddUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository()
public interface YddUserMapper {
    /**
     * 最新用户数据
     * @return
     */
    @Select("select * from ydd_user")
    List<YddUser> getAll();

    /**
     * 用户数据
     * @return
     */
    User getUser();
}
